
package com.abc;

public class BeiShu 
{
		public static void main( String args[] ) 
		 {   
			int x,y,z;
			{
		    System.out.println("1到100能被3整除的数为:");
		    for(x=1;x<=100;x++)
		        {
			        if(x%3==0)
			          {
				         System.out.print(x+",");
		              }     
		        }
		    System.out.println();
			}
			
		    {
		    System.out.println("1到100能被5整除的数为:");
			for(y=1;y<=100;y++)
			    {	 
			       if(y%5==0)
			          {
				        System.out.print(y+",");
			          }
			    }
			System.out.println();
		    }
		    
		    {
			System.out.println("1到100能被7整除的数为:");
			for(z=1;z<=100;z++)
				 
			    {
			      if(z%7==0)
			          {
				        System.out.print(z+",");
			          }
		        }
		    }
		 }	 
}
		


